<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>座位人员-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="crumbs-text">座位人员</div>
		<div class="right">
			<div class="input-group left w250">
		    	<input type="text" id="keyword" value="{$keyword}" class="form-control" placeholder="按姓名/名称搜索" autocomplete="off">
	    		<span class="input-group-btn">
	        		<button class="btn found_btn" type="button">搜索</button>
		    	</span>
		    </div>
			<if condition="is_permission('ZW',NULL,1)">
			<a href="__APP__/Administration/seat_type" class="btn left ml5" target="_blank">设置</a>
			<a href="__APP__/Administration/seat_map_user_add" class="btn left ml5">添加</a>
			</if>
		</div>
	</div>
	<div id="content">
		<!--div class="filter">
			<div class="filter-item">
				<div class="filter-title">所属中心：</div>
				<ul class="filter-order">
					<li <if condition="$center_id eq -10">class="current"</if>>
						<a href="__APP__/Index/my_project/keyword/{$keyword}/center_id/-10/status/{$status}">全部</a>
					</li>
					<li <if condition="$center_id eq 130004">class="current"</if>>
						<a href="__APP__/Index/my_project/keyword/{$keyword}/center_id/130004/status/{$status}">建设管理</a>
					</li>
					<li <if condition="$center_id eq 130005">class="current"</if>>
						<a href="__APP__/Index/my_project/keyword/{$keyword}/center_id/130005/status/{$status}">运营管理</a>
					</li>
					<li <if condition="$center_id eq 130003">class="current"</if>>
						<a href="__APP__/Index/my_project/keyword/{$keyword}/center_id/130003/status/{$status}">拓展中心</a>
					</li>
				</ul>
			</div>
			<div class="filter-item">
				<div class="filter-title">项目状态：</div>
				<ul class="filter-order">
					<foreach name="project_status" item="vo">
					<li <if condition="$status eq $vo['name2']">class="current"</if>>
						<a href="__APP__/Index/my_project/keyword/{$keyword}/center_id/{$center_id}/status/{$vo['name2']}">{$vo['name1']}</a>
					</li>
					</foreach>
				</ul>
			</div>
		</div-->
		<div class="table-scrollx">
			<table class="table table-bordered table-hover">
				<tr class="table-header fixed-table-header">
					<td width="">姓名/名称</td>
					<td width="">IT类固资</td>
					<td width="">行政固资</td>
					<td width="">其它</td>
					<td width="">备注</td>
					<td width="">区位名称-编号</td>
					<if condition="is_permission('ZW',NULL,1)">
					<td width="">管理</td>
					</if>
				</tr>
				<if condition="$result eq NULL">
				<tr>
					<td <if condition="is_permission('ZW',NULL,1)">colspan="7"<else/>colspan="6"</if> class="text-center">暂无相关内容</td>
				</tr>
				</if>
				<foreach name="result" item="vo">
				<tr>
					<td>{$vo['users']}</td>
					<td>{$vo['it_things']}</td>
					<td>{$vo['xz_things']}</td>
					<td>{$vo['other_goods']}</td>
					<td>{$vo['remark']}</td>
					<td><if condition="$vo['region_name'] neq NULL">{$vo['region_name']}</if><if condition="$vo['seat_number'] neq NULL and ($vo['region_name'] eq '工位' or $vo['region_name'] eq '办公室')">-{$vo['seat_number']}</if></td>
					<if condition="is_permission('ZW',NULL,1)">
					<td>
						<a href="__APP__/Administration/seat_map_user_edit/id/{$vo['id']}/keyword/{$keyword}" data-toggle="tooltip" data-placement="left" title="" class="edit mr5" data-original-title="编辑"><i class="glyphicon glyphicon-edit"></i></a>
						<if condition="$vo['del'] eq 1">
							<a href="javascript:;" mid="{$vo['id']}" action="delete" data-toggle="tooltip" data-placement="left" title="删除" class="delete"><i class="glyphicon glyphicon-trash"></i></a>
						</if>
					</td>
					</if>
				</tr>
				</foreach>
			</table>
		</div>
		<div class="pages">{$page}</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	//搜索
	$(".found_btn").keywordSearch("__APP__/Administration/seat_map_user/keyword/$keyword");
	//删除
	$(".delete").ajaxModal({"title_text":"确认提示框","body_text":"您确定要删除吗？","url":"__APP__/Administration/seat_map_user_ajax","data":{"id":"mid","action":"action"}});
});
</script>
</body>
</html>